﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;

namespace BEX.Core.Exchange.CAMPBX
{
    public class CampBXResponse
    {
        public CampBXResponse(string json)
            : this(JObject.Parse(json))
        {
        }

        private JObject __jobject;
        public CampBXResponse(JObject obj)
        {
            this.__jobject = obj;
        }

        public string Last_Trade
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "Last Trade"));
            }
        }

        public string Best_Bid
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "Best Bid"));
            }
        }

        public string Best_Ask
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "Best Ask"));
            }
        }
    }
}
